package com.licheedev.demo.utils;

/**
 * 环形数组
 * 获取最大值的API，往里丢数，不必管具体指针
 */
public class CicArr {
    int data[] ;
    int total;
    int pointer = 0;
    public CicArr( int total ) {
        this.data = new int [ total ];
        this.total = total;
    }
    public void putNum(int num){
        if( pointer <10){

        }else {

        }
        data[pointer] = num;
    }
}
